package com.alibaba.ai.service.impl;

import com.alibaba.ai.dao.YForumMapper;
import com.alibaba.ai.entity.YForum;
import com.alibaba.ai.service.YForumService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import javax.annotation.Resource;
import java.util.List;

@Service
public class YForumServiceImpl implements YForumService {
   @Resource
    private YForumMapper yForumMapper;

    @Transactional
    @Override
    public List<YForum> getForumListByDay() {
        return yForumMapper.getForumListByDay();
    }

    @Override
    public List<YForum> getForumListByWeek() {
        return yForumMapper.getForumListByWeek();
    }

    @Override
    public List<YForum> getForumListByYear() {
        return yForumMapper.getForumListByYear();
    }

    @Override
    public List<YForum> getForumList() {
        return yForumMapper.getForumList();
    }

    @Override
    public List<YForum> getForumListByLive() {
        return yForumMapper.getForumListByLive();
    }

    @Override
    public List<YForum> getForumListByDate() {
        return yForumMapper.getForumListByDate();
    }

    @Override
    public List<JSONObject> getForumlistByName(String yForName) {
        return yForumMapper.getForumlistByName(yForName);
    }
}
